//gcc -o gpio-test1 gpio-test1.c -lwiringPi


#include <stdio.h>
#include <wiringPi.h>

#define LED 8

int main (void)
{
  if (wiringPiSetup () == -1)
  return 1 ;

  pinMode (LED, OUTPUT) ;

  for (;;)
  {
    digitalWrite (LED, 1) ; // On
    printf("\nLed On");
	delay (1000) ; // ms
    digitalWrite (LED, 0) ; // Off
	printf("\nLed Off");
    delay (1000) ;
  }
  return 0 ;
}